import bb.cascades 1.2
import "lib"
import "controls"

Page {
    titleBar: TitleBar {
        title: qsTr("About")+ Retranslate.onLocaleOrLanguageChanged
    }
    
    ScrollView {
        Padding {
            Container {
                layout: DockLayout {
                }
                preferredWidth: style.screenWidth
                Container {
                    topPadding: 50
                    bottomPadding: 50
                    horizontalAlignment: HorizontalAlignment.Center
                    ImageView {
                        horizontalAlignment: HorizontalAlignment.Center
                        imageSource: "asset:///images/icon.png"
                        preferredHeight: 114
                        preferredWidth: 114
                    }
                    Container {
                        topPadding: 50
                        horizontalAlignment: HorizontalAlignment.Center
                        Label {
                            multiline: true
                            text: Application.applicationName + "(非官方客户端)"
                        }
                    }
                    
                    Container {
                        horizontalAlignment: HorizontalAlignment.Center
                        Label {
                            multiline: true
                            text: Application.applicationVersion
                        }
                    }
                }
            }
            
            Container {
                Header {
                    title: qsTr("copyright")
                }
                
                Padding {
                    
                    Container {
                        Label {
                            text: qsTr("Hiberbug")
                        }
                    }
                    
                    Container {
                        Label {
                            text: qsTr("http://www.ifeng.com")
                        }
                    }
                    
                    Container {
                        Label {
                            text: qsTr("Alipay:snajlqw@126.com")
                        }
                    }
                }
            }
        }
    }
    
    attachedObjects: [
        Common {
            id: style
        }
    ]
}
